home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 610 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.2 KB

  1. Date: Mon, 8 Nov 93 16:57:28 -0600
  2. From: rick@akbar.cc.utexas.edu (Rick Watson)
  3. Message-Id: <9311082257.AA19842@akbar.cc.utexas.edu>
  4. To: alt.mac.os@tazboy.jpl.nasa.gov, mint@terminator.rs.itd.umich.edu
  5. Subject: Process not releasing memory
  6.  
  7. When I run the attached program, a second attempt to run the program
  8. will fail if MacMiNT is running in high memory (above 16 megabytes)
  9. on my mac. It works ok if MacMiNT's partition is lower in memory.
  10.  
  11. It fails under Mint 1.08 and 1.09, but works ok under .095. 
  12.  
  13. Is this a known problem, and is there a fix?
  14.  
  15. # whereami
  16. I am at 0xe532ac
  17. malloc limits are e5430c to 1490234 (6537000)
  18. # !!
  19. whereami
  20. Fatal error: insufficient memory
  21.  
  22. Rick Watson 
  23. The University of Texas Computation Center, Networking Services, 512/471-3241
  24.    internet: r.watson@utexas.edu             bitnet: watson@utadnx
  25.    uucp:     ...!cs.utexas.edu!ut-emx!rick   span:   utspan::utadnx::watson
  26.  
  27. #include <memory.h>
  28. #include <stdio.h>
  29.  
  30. main ()
  31. {
  32.     int i;
  33.     char *c;
  34.  
  35.     printf ("I am at 0x%x\n", &i);
  36.  
  37.     for (i = 10000000; i > 0; i -= 1000)
  38.     if (c = malloc(i))
  39.         break;
  40.  
  41.     if (c) {
  42.     printf ("malloc limits are 0x%x to 0x%x (%d bytes)\n", c, c+i, i);
  43.     free(c);
  44.     }
  45. }
  46.  
  47.  
  48.  
  49.